import request from '@/utils/request'

// 查询列表
export function listIntensity(query) {
  return request({
    url: '/intensity/page',
    method: 'get',
    params: query
  })
}

// 查询区县致死性差异性详细
export function getModelIntensity(id) {
  return request({
    url: '/intensity/getModelById?id=' + id,
    method: 'get'
  })
}

export function getModelIntensityForCopy(id) {
  return request({
    url: '/intensity/getModelByIdForCopy?id=' + id,
    method: 'get'
  })
}

// 新增区县致死性差异性
export function addIntensity(data) {
  return request({
    url: '/intensity/save',
    method: 'post',
    data: data
  })
}

// 修改区县致死性差异性
export function updateIntensity(data) {
  return request({
    url: '/intensity/update',
    method: 'post',
    data: data
  })
}

// 删除
export function delIntensity(id) {
  return request({
    url: '/intensity/delete',
    method: 'post',
    data:{
    	id:id
    }
  })
}

